package com.ruoyi.threeViolation.service.impl;

import java.util.List;

import com.ruoyi.threeViolation.dto.ViolationExamineDto;
import com.ruoyi.threeViolation.vo.ViolationExamineVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.threeViolation.mapper.ViolationExamineMapper;
import com.ruoyi.threeViolation.domain.ViolationExamine;
import com.ruoyi.threeViolation.service.IViolationExamineService;

/**
 * 三违审核Service业务层处理
 *
 * @author lth
 * @date 2023-12-18
 */
@Service
public class ViolationExamineServiceImpl implements IViolationExamineService
{
    @Autowired
    private ViolationExamineMapper violationExamineMapper;

    /**
     * 查询三违审核
     *
     * @param id 三违审核主键
     * @return 三违审核
     */
    @Override
    public ViolationExamine selectViolationExamineById(String id)
    {
        return violationExamineMapper.selectViolationExamineById(id);
    }

    /**
     * 查询三违审核列表
     *
     * @param violationExamine 三违审核
     * @return 三违审核
     */
    @Override
    public List<ViolationExamine> selectViolationExamineList(ViolationExamine violationExamine)
    {
        return violationExamineMapper.selectViolationExamineList(violationExamine);
    }

    /**
     * 新增三违审核
     *
     * @param violationExamine 三违审核
     * @return 结果
     */
    @Override
    public int insertViolationExamine(ViolationExamine violationExamine)
    {
        return violationExamineMapper.insertViolationExamine(violationExamine);
    }

    /**
     * 修改三违审核
     *
     * @param violationExamine 三违审核
     * @return 结果
     */
    @Override
    public int updateViolationExamine(ViolationExamine violationExamine)
    {
        return violationExamineMapper.updateViolationExamine(violationExamine);
    }

    /**
     * 批量删除三违审核
     *
     * @param ids 需要删除的三违审核主键
     * @return 结果
     */
    @Override
    public int deleteViolationExamineByIds(String[] ids)
    {
        return violationExamineMapper.deleteViolationExamineByIds(ids);
    }

    /**
     * 删除三违审核信息
     *
     * @param id 三违审核主键
     * @return 结果
     */
    @Override
    public int deleteViolationExamineById(String id)
    {
        return violationExamineMapper.deleteViolationExamineById(id);
    }


}
